package web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import web.pojo.Course;
import web.service.CourseService;

@Controller
@RequestMapping("course")
public class CourseController {

    @Autowired
    CourseService service;

    @ResponseBody
    @RequestMapping("courseList")
    public List<Course> courseList() {
        return service.courseList();
    }
}
